package com.software.yh.controller;

import com.software.yh.service.grpc.HelloGrpcService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: lsy
 * @date: 2025/11/5
 * @version: 1.0
 */
@Slf4j
@RequestMapping("grpc")
@RestController
public class HelloController {

    @Autowired
    private HelloGrpcService helloGrpcService;

    @GetMapping("hello")
    public String hello() {
        return helloGrpcService.getHello("tiam");
    }

}
